﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Apply.aspx.cs" Inherits="HRDexCapstoneProject.Functions.JobPosting.Apply" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
            <link href="../../Styles/masterpage.css" rel="stylesheet" type="text/css" />
</head>
<body>

    <form id="form1" runat="server">
    <div id="main div" class="div">
    <div id="header" class="">Welcome to Job Site of Adamson University<br />
        </div>
    <div id="content">
    
        <asp:SqlDataSource ID="job" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HRdexDBConnectionString %>" 
            SelectCommand="SELECT JobID, Title, Description, Skills, DatePosted FROM catJobTitle">
        </asp:SqlDataSource>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="JobID" DataSourceID="job">
            <Columns>
                <asp:BoundField DataField="JobID" HeaderText="JobID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="JobID" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:BoundField DataField="Skills" HeaderText="Skills" 
                    SortExpression="Skills" />
                <asp:BoundField DataField="DatePosted" HeaderText="DatePosted" 
                    SortExpression="DatePosted" />
                     <asp:TemplateField HeaderText="Apply"> 
<ItemTemplate> 
    <asp:HyperLink ID="lnkSelect" runat='server' NavigateUrl='<%# String.Format("~/Functions/Job/JobSite.aspx?JobID={0}", Eval("JobID")) %>'>Apply</asp:HyperLink> 
</ItemTemplate> 
</asp:TemplateField>
            </Columns>
        </asp:GridView>
    
    </div>
    <div>
        Reserved the rights :)</div>
    </div>
    </form>
</body>
</html>
